package com.fy.shop.api;


import com.fy.shop.dto.*;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Primary;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@Primary
@FeignClient(value = "domain-shop", path = "/show")
public interface DistributorService {


    @ApiOperation(value = "查询利润",httpMethod = "Get")
    @GetMapping(value = "/profitFindAll")
    List<ProfitDto> profitFindAll(@RequestBody ProfitDto profitDto);

    @ApiOperation(value = "查询浏览记录",httpMethod = "Get")
    @GetMapping(value = "/recordFindAll")
    List<RecordDto>  recordFindAll(@RequestBody RecordDto recordDto);

    @ApiOperation(value = "修改个人分销商门店状态",httpMethod = "Post")
    @RequestMapping(value = "/updatePersonal",method = RequestMethod.POST,consumes = "application/json")
    int editPersonal(@RequestBody PersonalInformationDto personalInformationDto);

    @ApiOperation(value = "修改企业分销商门店状态",httpMethod = "Post")
    @RequestMapping(value = "/updateEnterprise",method = RequestMethod.POST,consumes = "application/json")
    int editEnterprise(@RequestBody EnterpriseInformationDto enterpriseInformationDto);

    @ApiOperation(value = "修改景区门店状态",httpMethod = "Post")
    @RequestMapping(value = "/updateEnter",method = RequestMethod.POST,consumes = "application/json")
    int updateEnter(@RequestBody SettledInputDto settledInputDto);

    @ApiOperation(value = "向门店中添加产品",httpMethod = "Post")
    @PostMapping(value = "/addProduct")
    List<UpPlatformDto> addProduct(@RequestBody IsShowProductDto isShowProductDto);


    @ApiOperation(value = "向门店中移除产品",httpMethod = "Post")
    @PostMapping(value = "/removeProduct")
    List<UpPlatformDto> removeProduct(@RequestBody IsShowProductDto isShowProductDto);


    @ApiOperation(value = "是否在店铺中上架产品",httpMethod = "Post")
    @PostMapping(value = "/IsShowProduct")
    int isShowProduct(@RequestBody IsShowProductDto isShowProductDto);

}
